<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #d1{
            width: 100px;
            height: 30px;
            background-color: green;
            color: red;
            /*color: rgba(255,0,0,1);*/
            /*横向和纵向居中怎么设置*/
           /* background-position: 50% 50% ;*/
            text-align: center;
            line-height: 30px;
        }
        span{
            font-size: 25px;
            font-style: italic;/*斜体*/
        }
        #h{
            font-weight: normal;/*去掉加粗*/
            /*方向是左下怎么设置*/
           /* text-shadow: blue 1px 1px 3px;*/
            text-shadow: blue -5px 5px 3px;
        }
        #hh{
            text-decoration: underline;/*添加下划线*/
        }
        a{
            text-decoration: none;/*去掉自带的下划线*/
            font-weight: bold;/*字体加粗*/
            font-size: 20px;
        }
    </style>
</head>
<body>
<div id="d1">刘德华</div>
<div>张学友</div>
<span>香蕉</span>
<span>苹果</span>
<h1 id="h">冰箱</h1>
<h1 id="hh">洗衣机</h1>
<a href="http://www.baidu.com">百度</a>
</body>
</html>